package com.abbas.CayTcore.entity

import androidx.room.ColumnInfo

data class WireRod(
    @ColumnInfo
    var wWidth: Float,
    @ColumnInfo
    var wHeight: Float,
) {

    override fun toString(): String {
        return "$wWidth" + "mm*" + "$wHeight" + "mm"
    }

    fun parse(s: String){
        var split = s.replace("mm", "")
            .split("*")
        wWidth = split[0].toFloat()
        wHeight = split[1].toFloat()
    }

}
